Package-level declarations
Types
Link copied to clipboard
data class EndpointInfo(val summary: String? = null, val description: String? = null, val deprecated: Boolean? = null) : OperationModule, RouteOpenAPIModule
Link copied to clipboard
abstract class OpenAPIRoute<T : OpenAPIRoute<T>>(val ktorRoute: Route, val provider: CachingModuleProvider)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Wrapper for io.ktor.routing.routing to create the endpoints while configuring OpenAPI documentation at the same time.
Wrapper for io.ktor.server.routing.routing to create the endpoints while configuring OpenAPI documentation at the same time.
Link copied to clipboard
Link copied to clipboard
fun makeExceptionHandler(info: Array<out APIException<*, *>>): suspend PipelineContext<*, PipelineCall>.(t: Throwable) -> Unit
Link copied to clipboard
inline fun <TRoute : OpenAPIRoute<TRoute>> TRoute.provider(vararg content: ContentTypeProvider, crossinline fn: TRoute.() -> Unit)
Creates a new route matching the specified content
Link copied to clipboard
Success response status code of the endpoint will be derived from the @Response annotation
Link copied to clipboard
Success response status code of the endpoints defined in the block will be derived from the @Response annotation
Link copied to clipboard
Sets the success response status code of the endpoint
Link copied to clipboard
inline fun <T : OpenAPIRoute<T>, EX : Throwable> T.throws(status: HttpStatusCode, crossinline fn: T.() -> Unit = {}): T
inline fun <T : OpenAPIRoute<T>> T.throws(vararg responses: APIException<*, *>, crossinline fn: T.() -> Unit = {}): T
inline fun <T : OpenAPIRoute<T>, EX : Throwable, B> T.throws(status: HttpStatusCode, example: B? = null, noinline gen: (EX) -> B? = null, crossinline fn: T.() -> Unit = {}): T
inline fun <T : OpenAPIRoute<T>, EX : Throwable> T.throws(status: HttpStatusCode, exClass: KClass<EX>, crossinline fn: T.() -> Unit = {}): T
inline fun <T : OpenAPIRoute<T>, EX : Throwable, B> T.throws(status: HttpStatusCode, example: B? = null, exClass: KClass<EX>, crossinline fn: T.() -> Unit = {}): T
exists for simpler syntax